package com.mustang.core.client;

import static com.mustang.core.client.GQuery.$;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.LabelElement;
import com.google.gwt.dom.client.Node;
import com.google.gwt.user.client.Window;

import com.mustang.core.client.type.Func;
import com.mustang.core.client.type.JsArray;
import com.mustang.core.client.type.JsObject;



public class Entry implements EntryPoint
{

	public void onModuleLoad()
	{
		$(new Func()
		{
			public void process()
			{
				LabelElement node=Document.get().createLabelElement();
				node.setInnerText("Hello Jason");
			//	$("p").after($("#js"));
				
				$(".inner").append(new Func(){

					@Override
					public void process()
					{
						Window.alert(""+this.getIntArgument("index")+this.getStringArgument("html"));
						this.setReturn("<strong>Hello Jason </strong>");
					}
					
					
				});

				//$("li").not(":even").css("background-color", "red");
				//$("li.third-item").prev("first-item").css("background-color", "red");
				/*$("li").not(new Func(){

					@Override
					public void process()
					{
						this.setReturn(false);
					}
					
				}).css("background-color", "red");;*/
				
			//Window.alert(s);
				
			
				

			}
		});
	}
	
	
	

}
